<template lang="html">
    <div class="menu-container">
        <div v-on:click.stop="showAll">
            <slot name="navbarTitle"></slot>
        </div>
        <transition name="slide-fade">
            <div class="" v-show="!isOpen">
                <slot name="navbarLink"></slot>
            </div>
        </transition>
    </div>
</template>

<script>
export default {
    methods: {
        showAll () {
            // console.log('showAll');
            this.isOpen = !this.isOpen;
        }
    },
    props: {

    },
    data () {
        return {
            isOpen: true
        };
    }
};
</script>

<style lang="scss" scoped>
.slide-fade-enter-active {
  transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-leave-active {
  transition: all .2s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to {
  transform: translateY(-10px);
  opacity: 0;
}
</style>
